require "migration_helpers"
class CreateClassifications < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :classifications do |t|
      t.column :classification_type_id, :integer
      t.column :value, :string
      t.column :meta_id, :integer
    end
  foreign_key(:classifications, :classification_type_id, :classification_types)
  foreign_key(:classifications, :meta_id, :metas)
  end

  def self.down
    drop_table :classifications
  end
end
